import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
* ${classInfo.classComment}
* @author ${authorName}
* @date ${.now?string('yyyy/MM/dd')}
*/
@Service
public class ${classInfo.className}ServiceImpl implements ${classInfo.className}Service {

	@Resource
	private ${classInfo.className}Dao ${classInfo.className?uncap_first}Dao;


	@Override
	public boolean insert(${classInfo.className} ${classInfo.className?uncap_first}) {
		return ${classInfo.className?uncap_first}Dao.insert(${classInfo.className?uncap_first});
	}

	@Override
	public boolean delete(${classInfo.primaryKeyType} id) {
		return ${classInfo.className?uncap_first}Dao.delete(id);
	}


	@Override
	public boolean update(${classInfo.className} ${classInfo.className?uncap_first}) {
		return ${classInfo.className?uncap_first}Dao.update(${classInfo.className?uncap_first});
	}


	@Override
	public ${classInfo.className} getById(${classInfo.primaryKeyType} id) {
		return ${classInfo.className?uncap_first}Dao.getById(id);
	}

}
